package siau.android.base;

import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattDescriptor;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;

import java.io.Serializable;

public class MyBlueToothBean implements Serializable {

    public BluetoothGatt getGatt() {
        return gatt;
    }

    public void setGatt(BluetoothGatt gatt) {
        this.gatt = gatt;
    }

    public MyBlueToothBean(BluetoothDevice bluetoothDevice, String bluetoothCode) {
        this.bluetoothDevice = bluetoothDevice;
        this.bluetoothCode = bluetoothCode;
    }

    private BluetoothGatt gatt;

    private BluetoothGattCharacteristic writeCharacteristic;
    private BluetoothDevice bluetoothDevice;
    private String bluetoothCode;
    private String serviceUuid;
    private String writeUuid;
    private String notifyUuid;
    private String desUuid;
    private int deviceType;//1体重秤 2身高仪 3电动牙刷

    public boolean voiceTrigger = false;
    public boolean simpleVoiceTrigger = false;
    public boolean shoeSizeTrigger = false;
    public int classTrigger = 0;//   0 kg/cm     1 磅/英尺

    private boolean getTrigger = false;

    public BluetoothDevice getBluetoothDevice() {
        return bluetoothDevice;
    }

    public void setBluetoothDevice(BluetoothDevice bluetoothDevice) {
        this.bluetoothDevice = bluetoothDevice;
    }

    public String getServiceUuid() {
        return serviceUuid;
    }

    public void setServiceUuid(String serviceUuid) {
        this.serviceUuid = serviceUuid;
    }

    public String getWriteUuid() {
        return writeUuid;
    }

    public void setWriteUuid(String writeUuid) {
        this.writeUuid = writeUuid;
    }

    public String getNotifyUuid() {
        return notifyUuid;
    }

    public void setNotifyUuid(String notifyUuid) {
        this.notifyUuid = notifyUuid;
    }

    public String getDesUuid() {
        return desUuid;
    }

    public void setDesUuid(String desUuid) {
        this.desUuid = desUuid;
    }

    public String getBluetoothCode() {
        return bluetoothCode;
    }

    public void setDeviceType(int deviceType) {
        this.deviceType = deviceType;
    }

    public int getDeviceType() {
        return deviceType;
    }

    public void setWriteCharacteristic(BluetoothGattCharacteristic writeCharacteristic) {
        this.writeCharacteristic = writeCharacteristic;
    }

    public BluetoothGattCharacteristic getWriteCharacteristic() {
        return writeCharacteristic;
    }

    public void setGetTrigger(boolean getTrigger) {
        this.getTrigger = getTrigger;
    }

    public boolean getGetTrigger() {
        return getTrigger;
    }


    //---------------


    public int getButtonStateChange() {
        return buttonStateChange;
    }

    public void setButtonStateChange(int buttonStateChange) {
        this.buttonStateChange = buttonStateChange;
    }

    private int buttonStateChange = ButtonDefault;

    public static int ButtonDefault = -1;
    public static int VoiceOpen = 1;
    public static int VoiceClose = 2;
    public static int ShoeSizeOpen = 3;
    public static int ShoeSizeClose = 4;
    public static int SimpleVoiceOpen = 5;
    public static int SimpleVoiceClose = 6;
    public static int classCMtoFT = 7;
    public static int classFTtoCM = 8;
    public static int classLBtoKG = 10;
    public static int classKGtoLB = 13;
}
